<?php
/**
* Hellos View for Hello World Component
*
* @package Joomla.Tutorials
* @subpackage Components
* @link http://dev.joomla.org/component/option,com_jdwiki/
Itemid,31/id,tutorials:components/
* @license GNU/GPL
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();
jimport( 'joomla.application.component.view' );
/**
* Hellos View
*
* @package Joomla.Tutorials
* @subpackage Components
*/
class AccessrulesViewAccessrules extends JView
{
	/**
	* Hellos view display method
	* @return void
	**/
	function display($tpl = null)
	{
		JToolBarHelper::title( JText::_( 'Access Rules' ), 'generic.png' );
		//JToolBarHelper::deleteList();
		//JToolBarHelper::editListX();
		//JToolBarHelper::addNewX();
		// Get data from the model
		
		//$items =& $this->get( 'Data');
		$model =& $this->getModel('Accessrules'); 
		$__data->sections = $model->getSections();
		$__data->categories = $model->getCategories();

		//Check to Search Content
		/*$__data->contents = null;
		if (!strcmp (strtolower(JRequest::getVar('task')), strtolower('searchContents'))) {
			$__idSections  = JRequest::getVar( 'idSectionsName', -1, '', 'int' );
			$__idCategories = JRequest::getVar( 'idCategoriesName', -1, '', 'int' );
			$__data->contents = $model->getContentsBySecAndCat ($__idSections, $__idCategories);
		}*/
		
				
		$this->assignRef( 'items', $__data );
		parent::display($tpl);
	}

}